import pygame

from Core.CScene import Scene

class TestScene(Scene):

  def __init__(self):
    self.__sound = pygame.mixer.Sound("../data/sounds/bird.ogg")
    self.__music = pygame.mixer.Sound("../data/sounds/music.ogg")
    self.__elapsedtime = 0

    self.__music.play(-1)

  def draw(self, graphics):
    graphics.clearScreen()

  def update(self, time):
    self.__elapsedtime += time
    if self.__elapsedtime > 5000:
      self.__sound.play()
      self.__elapsedtime = 0
